package com.tomshushu.doc.freedoc.modular.projectuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tomshushu.doc.freedoc.modular.projectuser.entity.ProjectUserEntity;
import com.tomshushu.doc.freedoc.modular.projectuser.model.param.GetUserByProjectParam;
import com.tomshushu.doc.freedoc.modular.projectuser.model.result.GetUserByProjectResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:17
 * @version: 1.0
 */
public interface ProjectUserMapper extends BaseMapper<ProjectUserEntity> {

    /**
     * 根据项目id获取项目用户列表
     *
     * @param projectId
     * @return
     */
    List<GetUserByProjectResult> getUserByProjectId(@Param("projectId") String projectId);

}